const formatted = [0, 1, 12, 123, 1234, 12345].map(num => num.toString().padStart(10, '0'))

//从前面开始用0把字符串补全到10位

console.log(formatted)

//输出的结果是["0000000000", "0000000001", "0000000012", "0000000123", "0000001234", "0000012345"]